#ifndef ADDWIDGET_H
#define ADDWIDGET_H

#include "ui_addwidget.h"
#include <QDialog>

enum
{
    PROJECT,
    EPIC,
    FEATURE,
    STORY,
    TASK,
    BUG
};

namespace Ui {
class AddWidget;
}

class AddWidget : public QDialog
{
    Q_OBJECT

public:
    explicit AddWidget(QWidget *parent = nullptr, int type = 0);
    ~AddWidget();

public Q_SLOTS:
    virtual void accept();

public:
    int m_getType;
    Ui::AddWidget *ui;
    QWidget *widget1;
    void setTitle(QString txt)
    {
        ui->label_title->setText(txt);
    }
    void fushComboBox(QComboBox *current);
    void getAttrs(uint64_t &startTime, uint64_t &stopTime, int &parentId);
    QStringList getTitles();
private slots:
    void on_comboBox_Project_currentIndexChanged(const QString &arg1);
    void on_comboBox_Eipc_currentIndexChanged(const QString &arg1);
    void on_comboBox_Feature_currentIndexChanged(const QString &arg1);
    void on_comboBox_Story_currentIndexChanged(const QString &arg1);
};

#endif // ADDWIDGET_H
